/*
方块类
 */
public class Cell {
    int x,y;
    String shape;
    Cell(){}
    Cell(int x,int y){
        this.x = x - 1;
        this.y = y - 1;
    }
    Cell(int x,int y,String shape){
        this.x = x - 1;
        this.y = y - 1;
        this.shape = shape;
    }
    public void print(){
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 10; j++) {
                if (shape==(null)){
                    if (i == x && j == y){
                        System.out.print("*");
                    }else {
                        System.out.print("-");
                    }
                }else {
                    switch (shape){
                        case "T":
                            if (i == x && j == y | j == y+1 | j == y+2){
                                System.out.print("*");
                            } else if (i == x+1 && j == y+1) {
                                System.out.print("*");
                            } else {
                                System.out.print("-");
                            }
                        case "O":
                            if (i == x && j == y | j == y+1){
                                System.out.print("*");
                            } else if (i == x+1 && j == y | j == y+1) {
                                System.out.print("*");
                            } else {
                                System.out.print("-");
                            }
                    }
                }
            }
            System.out.println();
        }
    }
}